package com.example.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;

@EnableCaching  // 开启注解版的缓存
@SpringBootApplication
public class SpringBootCachemanagerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringBootCachemanagerApplication.class, args);
        CacheManager cacheManager = context.getBean(CacheManager.class);
        System.out.println();
    }

}
